-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Button to token system #1228
base: master
Are you sure you want to change the base?
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
disabled?: boolean; | ||
} | ||
|
||
interface ButtonProps extends Omit<ActionableButtonProps, "primitiveType" | "csVariant">, Modifiers { |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
csSize?: "xs" | "s" | "m" | "l"; | ||
} | ||
|
||
interface IconButtonProps | ||
extends Omit< | ||
ActionableButtonProps, | ||
"primitiveType" | "csVariant" | "csSize" | "children" | ||
> { | ||
>, Modifiers { |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
m: buttonStyles["button--size-m"], | ||
l: buttonStyles["button--size-l"], | ||
}[scheme]; | ||
}; |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
60d4195
to
71b2bfa
Compare
@@ -46,12 +51,11 @@ | |||
|
|||
export const Button = React.forwardRef<HTMLButtonElement, ButtonComponentProps>( | |||
(props: ButtonComponentProps, forwardedRef) => { | |||
const { rootClasses, csTextStyles, icon, ...forwardedProps } = props; | |||
const { rootClasses, csTextStyles, icon, dimmed, subtle, disabled, ...forwardedProps } = props; |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
interface CyberstormLinkProps extends ActionableCyberstormLinkProps, Modifiers {} | ||
|
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
csSize = "m", | ||
csTextStyles, | ||
dimmed, |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
csSize = "m", | ||
csTextStyles, | ||
dimmed, | ||
subtle, |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
csSize = "m", | ||
csTextStyles, | ||
dimmed, | ||
subtle, | ||
disabled, |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
styles.button, | ||
buttonStyles.button, | ||
getSize(csSize), | ||
getVariant(csVariant), |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
buttonStyles.button, | ||
getSize(csSize), | ||
getVariant(csVariant), | ||
dimmed ? buttonStyles["button--dimmed"] : null, |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
getSize(csSize), | ||
getVariant(csVariant), | ||
dimmed ? buttonStyles["button--dimmed"] : null, | ||
subtle ? buttonStyles["button--subtle"] : null, |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
getVariant(csVariant), | ||
dimmed ? buttonStyles["button--dimmed"] : null, | ||
subtle ? buttonStyles["button--subtle"] : null, | ||
disabled ? buttonStyles["button--disabled"] : null, |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
m: buttonStyles["button--size-m"], | ||
l: buttonStyles["button--size-l"], | ||
}[scheme]; | ||
}; |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
ab94adc
to
c00d254
Compare
c00d254
to
bc0dbf8
Compare
No description provided.